<template>
  <div>
    <h2>事件修饰符</h2>
  <form action="">
    <input type="text" @keyup.enter="two">
    <button @click.prevent="one">按钮</button>
  </form>
  </div>
</template>

<script>
export default {
  methods: {
  one(){
   console.log(123)
  },
 two(){
console.log(345)
 }
  }
}
</script>

<style>
h2{
  color: aquamarine;
}
</style>

